package cn.edu.nyist.integration.util;

import org.springframework.util.DigestUtils;

public class MD5Util {

    private static final String salt = PropertiesUtils.getProperty("password.salt");

    public static String md5(String password){
        password = password+salt;
        return DigestUtils.md5DigestAsHex(password.getBytes());
    }

}
